import { useEffect } from "react"
import NProgress from 'nprogress'

import { renderRoutes } from "react-router-config"
import { defaultRoutes } from "./router/index"
import 'nprogress/nprogress.css'


function App() {
  NProgress.start()
  useEffect(() => {
    NProgress.done()
  }, [])
  return (
    <>
      <div className="App">
        {renderRoutes(defaultRoutes)}
      </div>

    </>
  )
}

export default App;
